<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Dcat\Admin\Layout\Content;

class HomeController extends Controller
{
    public function index(Content $content)
    {
        $src = asset('static/images/admin/home/admin-bj.png');
        $body = "<div style='width: 100%;height: 100%'>
<div style='margin: 8% 30%'>
<img src='$src' alt='$src'>
<div  style='margin-top: 10%;text-align: center;font-size: 40px;color: #333333'>欢迎使用</div>
</div>
</div>";
        return $content
            ->header('系统首页')
            ->description('欢迎您登录')
            ->body($body);
    }

}
